package com.hyt.it.ogt.ykcj.mapper.zs;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hyt.it.ogt.ykcj.domain.param.CertificatePageParam;
import com.hyt.it.ogt.ykcj.domain.zs.ZsInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 证书证件信息Mapper接口
 *
 * @author admin
 * @date 2021-08-10
 */
public interface ZsInfoMapper extends BaseMapper<ZsInfo> {

	IPage<ZsInfo> queryPage(CertificatePageParam param);

	int countPage(@Param("certificateName") String certificateName, @Param("officeId") String officeId);

	int countZsByName(@Param("id") String id, @Param("certificateName") String certificateName, @Param("officeId") String officeId);
	
	/***
	 * 查询机构下关联证书的考试id列表
	 * @param officeId
	 * @return
	 */
	List<String> getExamIdsByOfficeId(String officeId, String zsId);

}
